package com.hxminer.hxwebs.dao;

import com.hxminer.hxwebs.model.Orders;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Author YRG
 * Created by on 2018/5/16.
 * Describe
 */
@Transactional
@Repository
public interface OrderDao extends PagingAndSortingRepository<Orders, String> {

    List<Orders> findByUserIdAndUsernameAndOrdersNo(String uerId, String username, String orderNo);
}
